package com.jianli.smart.service;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.jianli.smart.aop.annotation.Transaction;
import com.jianli.smart.core.annotation.Service;

@Service("userService")
public class UserService {
	public String getDateTime(){
		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String currentTime = dateFormat.format(new Date());
		return currentTime;
	}
	
	@Transaction
	public String dbTransaction(){
		return "success";
	}
}
